#include <iostream>
#include <string>
#include <regex>

int main()
{
    std::string str = "/yuanshuai-1234";

    std::regex e("/yuanshuai-(\\d+)");
    std::smatch matches;
    
    bool ret = std::regex_match(str, matches, e);
    if(ret == false) 
        std::cout << "false" << std::endl; 
    for(auto &e : matches)
    {
        std::cout << e << std::endl;
    }
    return 0;
}

